// module.exports = {
//     devServer: {
//         port: 80,   // 端口号
//         disableHostCheck: true
//     },
//     publicPath:'./',
// };
module.exports = {
    devServer: {
        disableHostCheck: true,
        open: true,
        port: 80,
        proxy: {
            '/api': {
                target: 'http://47.92.95.86:8080',
                // target: 'http://localhost:81',
                changeOrigin: true,
                pathRewrite: {
                    '^/api': ''
                }
            },
            '/movie': {
                target: 'http://localhost:5001',
                changeOrigin: true,
                pathRewrite: {
                    '^/movie': ''
                }
            },
            '/novel': {
                target: 'http://localhost:5000',
                changeOrigin: true,
                pathRewrite: {
                    '^/novel': ''
                }
            },
            '/img': {
                target: "http://47.92.95.86:9090",
                changeOrigin: true,
                pathRewrite: {
                    '^/img': ''
                }
            }
        }
    },
    publicPath: './',
};